package org.jivesoftware.smack.filter;

import org.jivesoftware.smack.packet.Packet;

public class PacketExtensionFilter
  implements PacketFilter
{
  private String elementName;
  private String namespace;

  public PacketExtensionFilter(String paramString1, String paramString2)
  {
    this.elementName = paramString1;
    this.namespace = paramString2;
  }

  public PacketExtensionFilter(String paramString)
  {
    this(null, paramString);
  }

  public boolean accept(Packet paramPacket)
  {
    return paramPacket.getExtension(this.elementName, this.namespace) != null;
  }
}

/* Location:           D:\hygieia\userclient\common\libs\easemobchat_2.1.8.jar
 * Qualified Name:     org.jivesoftware.smack.filter.PacketExtensionFilter
 * JD-Core Version:    0.6.1
 */